import request from '@/utils/request.js'

export async function getOrderList (params) {
  var res = await request.get('http://121.89.205.189/api/order/confirmOrder', {
    params: params
  })
  return res.data
}

export async function getList (params) {
  var res = await request.get('http://121.89.205.189/api/address/list', {
    params: params
  })
  return res.data.data
}

export async function updateOrderAddress (params) {
  var res = await request.post('http://121.89.205.189/api/order/updateOrderAddress', params)
  return res.data
}

export async function addAddress (params) {
  var res = await request.post('http://121.89.205.189/api/address/add', params)
  return res.data
}

export async function update (params) {
  var res = await request.post('http://121.89.205.189/api/address/update', params)
  return res.data
}

export async function deleteaddress (params) {
  var res = await request.post('http://121.89.205.189/api/address/delete', params)
  return res.data
}
